using System.Web.Routing;
using Basmus.Values.Web;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Basmus.Tests.WebLink
{
    [TestClass]
    public class RouteDataValueProviderTests : AbstractValueProviderTests<RouteDataValuesProvider>
    {
        private RouteDataValuesProvider _valuesProvider;

        private RouteData _values;

        [TestInitialize]
        public void Initialize()
        {
            _values = new RouteData();
            _valuesProvider = new RouteDataValuesProvider(_values);
        }

        protected override void SetStringValues(string name, string values)
        {
            _values.Values[name] = values;
        }

        protected override RouteDataValuesProvider GetValueProvider()
        {
            return _valuesProvider;
        }
    }
}